package com.qiangou.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.entity.AdvMes;
import com.qiangou.dao.impl.AdvMesDaoImpl;
import com.qiangou.service.AdvMesService;

@Service("AdvMesService")
public class AdvMesServiceImpl implements AdvMesService {
	int num;
	@Resource(name = "AdvMesDao")
	private AdvMesDaoImpl AdvMesDao;

	@Override
	public AdvMes getAdvMes(AdvMes s) {

		return AdvMesDao.get(s.getAdvid());
	}

	@Override
	public List<AdvMes> findAllAdvMes(AdvMes advmes) {

		return AdvMesDao.findAllAdvMes(advmes);
	}

	@Override
	public void save(AdvMes s) {
		AdvMesDao.save(s);

	}

}
